package me.firstapp.module.shop;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import me.firstapp.module.base.CommonEntity;

@Entity
@Table(name = "PRODUCT_SKU")
public class Sku extends CommonEntity {

	private static final long serialVersionUID = 3530841863904351462L;

	// 商品id
	@Column(name = "PRODUCT_ID", nullable = false)
	private Long productId;

	// 商品名称
	// 冗余字段
	@Column(name = "PRODUCT_NAME", length = 50, nullable = false)
	private String productName;

	// 属性名称
	@Column(name = "NAME", length = 10, nullable = false)
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getProductId() {
		return productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

}
